<!--%import("filter/insert_payment.xml")-->
<!--%import("filter/update_payment.xml")-->
<!--#include("inc_PaymentHeader.html")-->

<style type="text/css">
	#system_conf dl { margin:0px; margin-top:10px; }
	#system_conf dl dt { float:left; width:80px; line-height:25px; }
	#system_conf dl dd { line-height:25px; }
</style>

<textarea id="template-system-" style="display:none;"><p>{$lang->payment_about_system}</p></textarea>
<!--@foreach($system_list as $key => $val)-->
<!--@if($payment_info['config']->system == $val->attrs->id)-->
	{@$value = $payment_info['config']}
<!--@else-->
	{@$value = null}
<!--@end-->
<textarea id="template-system-{$val->attrs->id}" style="display:none;">
	<dl>
		<!--@foreach($val->extra_vars->var as $extra_key => $extra_val)-->
		{@$var_id = $extra_val->attrs->id}
		<dt>{$extra_val->name->body}</dt>
		<dd>
			<!--@if($extra_val->type->body=="text")-->
			<input type="text" name="{$extra_val->attrs->id}" value="{$value->variable[$var_id]}" class="inputTypeText w180" rel="system_info" />
			<!--@else if($extra_val->type->body=="checkbox")-->
			<input type="checkbox" name="{$extra_val->attrs->id}" value="Y" rel="system_info"<!--@if($value->variable[$var_id] == "Y")--> checked<!--@end--> /> {$extra_val->description->body}
			<!--@end-->
		</dd>
		<!--@end-->
	</dl>
	<p>{$val->description->body}</p>
</textarea>
<!--@end-->
<form action="./" method="post" onsubmit="readyForm(this); return procFilter(this, insert_payment);" id="payment_write">
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_srl" value="{$module_srl}" />
<input type="hidden" name="extra_val"  value="" />
    <table cellspacing="0" class="rowTable">
    <tr class="row2">
        <th scope="row"><div>{$lang->mid}</div></th>
        <td colspan="3"><input type="text" name="mid" value="{$payment_info['mid']}" class="inputTypeText w400" /></td>
    </tr>
    <tr class="row">
        <th scope="row"><div>{$lang->payment_system}</div></th>
        <td colspan="3">
			<select name="current_extra" id="CurrentExtra">
				<option value="">선택하세요</option>
				<!--@foreach($system_list as $key => $val)-->
				<option value="{$val->attrs->id}" <!--@if($payment_info['config']->system == $val->attrs->id)-->selected="true"<!--@end-->>{$val->name->body}</option>
				<!--@end-->
            </select>
			<div id="system_conf"></div>
        </td>
    </tr>
    <tr class="row2">
        <th scope="row"><div>{$lang->description}</div></th>
        <td colspan="3">
            <input type="text" name="description" value="{$payment_info['description']}" class="inputTypeText w400" />
            <p>{$lang->about_description}</p>
        </td>
    </tr>
    <tr>
        <th class="button" colspan="4">
            <span class="button black strong"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
        </th>
    </tr>
    </table>
</form>
